#include "rtupage.h"
#include "ui_rtupage.h"

RTUPage::RTUPage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::RTUPage)
{
    ui->setupUi(this);
}

RTUPage::~RTUPage()
{
    delete ui;
}

int RTUPage::getSerialPort()
{
    return ui->serialPortBox->currentIndex();
}

int RTUPage::getBaudRate()
{
    return ui->baudRateBox->currentIndex();
}

int RTUPage::getDataBit()
{
    return ui->dataBitBox->currentIndex();
}

int RTUPage::getParityBit()
{
    return ui->parityBitBox->currentIndex();
}

int RTUPage::getStopBit()
{
    return ui->stopBitBox->currentIndex();
}
